<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=windows-1252"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <tiles:get name="metaHeader"/>
    <tiles:get name="common_header"/>
    <title><c:out value="${appFullName}"/> </title>

	<script language="javascript">javascript:window.history.forward(1);</script>

</head>

<body class="standard_body">
    <div align="center">
        <table class="main_table" border="1" cellspacing="0" cellpadding="0" style="width: 550px;">
        	<%-- Mensajes de la aplicacion --%>
            <logic:present name="eventList">
                <tr>
                    <td style="border:0;padding-left:10px;padding-right:10px;" >
                        <table class="messages" cellspacing="0">
                            <tr style="background-image: url('images/blueBar.jpg');background-position: center; cursor:hand;" onclick="javascript:changeView('eventsBlock');">
                                <td style="font-weight:bold;">
                                    Novedades
                                </td>
                                <td align="right">
                                    [-/+]
                                </td>
                            </tr>
                            <tr id="eventsBlock">
                                <td class="eventscontent" colspan="2">
                                    <c:forEach items="${eventList}" var="event">
                                        <li><c:out value="${event.msg}"/></li>
                                    </c:forEach>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </logic:present>
            <%-- Mensajes informativos --%>
            <logic:messagesPresent message="true">
                <tr>
                    <td style="border:0;padding-left:10px;padding-right:10px;" >
                        <table class="messages" cellspacing="0">
                            <tr style="background-image: url('images/messagesBar.jpg');background-position: center; cursor:hand;" onclick="javascript:changeView('msgBlock');">
                                <td style="font-weight:bold;">
                                    Mensajes Informativos
                                </td>
                                <td align="right">
                                    [-/+]
                                </td>
                            </tr>
                            <tr id="msgBlock">
                                <td class="messagescontent" colspan="2">
                                    <html:messages id="msgId" message="true">
                                        <li><bean:write name="msgId"/></li>
                                    </html:messages>
                                </td>
                            </tr>
                            
                        </table>
                    </td>
                </tr>
            </logic:messagesPresent>
            <%-- Mensajes de advertencia --%>
            <logic:messagesPresent name="warningMessages">
            <tr>
                <td style="border:0;padding-left:10px;padding-right:10px;" >
                    <table class="messages" cellspacing="0">
                        <tr style="background-image: url('images/warningBar.jpg');background-position: center; cursor:hand;" onclick="javascript:changeView('msgWarning');">
                            <td style="font-weight:bold;">
                                Advertencias
                            </td>
                            <td align="right">
                                [-/+]
                            </td>
                        </tr>
                        <tr id="msgWarning">
                            <td class="messagescontent_warning" colspan="2">
                                <html:messages name="warningMessages" id="msg">
                                    <li><bean:write name="msg"/></li>
                                </html:messages>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            </logic:messagesPresent>
            <%-- Mensajes de error --%>
            <logic:messagesPresent>
                <tr>
                    <td style="border:0;padding-left:10px;padding-right:10px;" >
                        <table class="messages" cellspacing="0">
                            <tr style="background-image: url('images/errorBar.jpg');background-position: center; cursor:hand;" onclick="javascript:changeView('errorsBlock');">
                                <td style="font-weight:bold;">
                                    Errores
                                </td>
                                <td align="right">
                                    [-/+]
                                </td>
                            </tr>
                            <tr id="errorsBlock">
                                <td class="messagescontent_error" colspan="2">
                                    <html:errors/>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </logic:messagesPresent>
        	<tr style="height: 180px;" valign="top">
           		<td class="no_border"><tiles:get name="body"/></td>
          	</tr>
          	<tr>
            	<td class="no_border"><tiles:get name="footer"/></td>
          	</tr>
        </table>  
    </div>

	<div id="over" class="shadow" style="display:none;"></div>
	<div id="loading" class="loadingMessageStyle" style="display:none;">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr><td><bean:message key="label.loading" /></td></tr>
		</table>
	</div>
	
</body>
</html>
